<!DOCTYPE html>
<html>
<head>
    <script src="../resources/runner.js"></script>
    <script src="resources/utils.js"></script>
</head>
<body>
</body>
    <script>
        createRegularDOMTree();
        PerfTestRunner.measureTime({
            description: "Measures the performance of applying a style on all divs.",
            run: function() {
                var rule = applyCSSRule("div { cursor: crosshair; }");
                forceStyleRecalc(document.body);
                rule.remove();
                forceStyleRecalc(document.body);
            },
            tracingCategories: 'blink',
            traceEventsToMeasure: [
                'Document::updateStyle',
                'Document::recalcStyle',
                'Document::rebuildLayoutTree'
            ]
        });
    </script>
</html>
